package com.wanpinghui.wphlibrary.model.base;

import android.content.Context;

import com.bumptech.glide.Glide;
import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.module.GlideModule;
import com.wanpinghui.wphlibrary.model.base.bean.CacheImage;

import java.io.InputStream;

/**
 * 功能描述
 * author:caitiangui
 * time:2017/12/13
 */

public class CacheImageModule implements GlideModule {
    @Override
    public void applyOptions(Context context, GlideBuilder builder) {

    }

    @Override
    public void registerComponents(Context context, Glide glide) {
        glide.register(CacheImage.class, InputStream.class, new CacheImageLoader.Factory());
    }
}

